package com.woniuxy.microuserserver.mapper;

import com.woniuxy.microcommonserver.bean.user_hpd.ScoreDetail;
import com.woniuxy.microcommonserver.pageHelper.PageRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface UserScoreMapper {
    /**
     * 查询所有积分明细
     * @return
     */
    List<ScoreDetail> findDetailByParam(@Param("p") PageRequest request, @Param("st") Date startTime, @Param("et") Date endTime);

    /**
     * 增加积分明细
     * @param scoreDetail
     */
    void addScoreDetail(@Param("s") ScoreDetail scoreDetail);

}
